package com.xhdx.miyao;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class T {

    public static void main(String[] args) {
        //type=1
        //step=1&acct=6214581234567890123&name=阿女&certNb=430421197709123461&phone=13533334444&certType=0&vericode=undefined-&stationMobile=13810833335

        String ss=null;
        try {
            ss = URLDecoder.decode("%E6%95%B4%E5%AD%98%E6%95%B4%E5%8F%96","UTF-8");
        } catch (UnsupportedEncodingException e) {
        }
        String p = miyao.outputMiya("Q*ACF97D5AC&#24AE6573A4C8AA703F98D9", "step=1&acct=6214581234567890123&name="+ss+"&certNb=430421197709123461&phone=13533334444&certType=0&vericode=undefined-&stationMobile=13810833335");
        System.out.println("======:"+p);
        if("29b365c0fd0dd04cf9f17c6a07ba9214".toUpperCase().equals(p)){
            System.out.println("true");
        }else{
            System.out.println("false");
        }
        System.out.println(miyao.outputMiya("Q*ACF97D5AC&#24AE6573A4C8AA703F98D9","mobile=15800000000&step=1&veriCode=123456-5&yesOrNo=0&inviteCode=&shuos="));
        
        String x = DesUtils.encode("测试账号");
        System.out.println(DesUtils.decode(x));
    }

}
